
public class Money {

	private int money;
	
	public Money()
	{
		money = 1;
	}
	
	public void increment()
	{
		money++;
	}
	
	public boolean canBuy(Monkey m)
	{
		if(money >= m.cost)
			return true;
		else
			return false;
	}
	
	public void spend(Monkey m)
	{
		money-= m.cost;
	}
	
	public void roundBonus()
	{
		money+= 100;
	}
	
	public boolean canUpgrade(Monkey m)
	{
		if(money >= m.upgradeCost)
			return true;
		else
			return false;
	}
	
	public void spendUpgrade(Monkey m)
	{
		money-= m.upgradeCost;
	}
	
	public int getMoney()
	{
		return money;
	}
}
